// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_FIN_RECEIVED_DETAIL
// * CreateDate    : 2012/4/10 10:20:51
// * Creater       : CodeSmith
// * LastChangeDate: 2012/4/10 10:20:51
// * LastChanger   : 2012/4/10 10:20:51
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
	[Serializable]
	public partial class FinReceivedDetailEntity : EntityBase
    {
        public FinReceivedDetailTable TableSchema
        {
            get
            {
                return FinReceivedDetailTable.Current;
            }
		}
		
		public FinReceivedDetailEntity()
        {

        }
		
		public FinReceivedDetailEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.ReceivedDetailId = Convert.ToString(CommonFunctions.ToObject(dr["RECEIVED_DETAIL_ID"]));
			this.AccountsCode = Convert.ToString(CommonFunctions.ToObject(dr["ACCOUNTS_CODE"]));
			this.OrderType = Convert.ToString(CommonFunctions.ToObject(dr["ORDER_TYPE"]));
			this.RelatedOrderId = Convert.ToString(CommonFunctions.ToObject(dr["RELATED_ORDER_ID"]));
			this.CustomerId = Convert.ToString(CommonFunctions.ToObject(dr["CUSTOMER_ID"]));
			this.ReceivedPerson = Convert.ToString(CommonFunctions.ToObject(dr["RECEIVED_PERSON"]));
			this.ReceivedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["RECEIVED_DATE"]));
			this.ReceivedAmount = Convert.ToDecimal(CommonFunctions.ToObject(dr["RECEIVED_AMOUNT"]));
			this.Currency = Convert.ToString(CommonFunctions.ToObject(dr["CURRENCY"]));
			this.ReceivedType = Convert.ToString(CommonFunctions.ToObject(dr["RECEIVED_TYPE"]));
			this.InvoiceNo = Convert.ToString(CommonFunctions.ToObject(dr["INVOICE_NO"]));
			this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
			this.CreatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATED_DATE"]));
			this.CreatedBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATED_BY"]));
			this.LastModifiedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["LAST_MODIFIED_DATE"]));
			this.LastModifiedBy = Convert.ToString(CommonFunctions.ToObject(dr["LAST_MODIFIED_BY"]));
			this.ApprovedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["APPROVED_DATE"]));
			this.ApprovedBy = Convert.ToString(CommonFunctions.ToObject(dr["APPROVED_BY"]));
			this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
			this.BankAccount = Convert.ToString(CommonFunctions.ToObject(dr["BANK_ACCOUNT"]));
			this.PayType = Convert.ToString(CommonFunctions.ToObject(dr["PAY_TYPE"]));
        }
		
		public FinReceivedDetailEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.ReceivedDetailId = Convert.ToString(CommonFunctions.ToObject(dr["RECEIVED_DETAIL_ID"]));
			this.AccountsCode = Convert.ToString(CommonFunctions.ToObject(dr["ACCOUNTS_CODE"]));
			this.OrderType = Convert.ToString(CommonFunctions.ToObject(dr["ORDER_TYPE"]));
			this.RelatedOrderId = Convert.ToString(CommonFunctions.ToObject(dr["RELATED_ORDER_ID"]));
			this.CustomerId = Convert.ToString(CommonFunctions.ToObject(dr["CUSTOMER_ID"]));
			this.ReceivedPerson = Convert.ToString(CommonFunctions.ToObject(dr["RECEIVED_PERSON"]));
			this.ReceivedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["RECEIVED_DATE"]));
			this.ReceivedAmount = Convert.ToDecimal(CommonFunctions.ToObject(dr["RECEIVED_AMOUNT"]));
			this.Currency = Convert.ToString(CommonFunctions.ToObject(dr["CURRENCY"]));
			this.ReceivedType = Convert.ToString(CommonFunctions.ToObject(dr["RECEIVED_TYPE"]));
			this.InvoiceNo = Convert.ToString(CommonFunctions.ToObject(dr["INVOICE_NO"]));
			this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
			this.CreatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATED_DATE"]));
			this.CreatedBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATED_BY"]));
			this.LastModifiedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["LAST_MODIFIED_DATE"]));
			this.LastModifiedBy = Convert.ToString(CommonFunctions.ToObject(dr["LAST_MODIFIED_BY"]));
			this.ApprovedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["APPROVED_DATE"]));
			this.ApprovedBy = Convert.ToString(CommonFunctions.ToObject(dr["APPROVED_BY"]));
			this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
			this.BankAccount = Convert.ToString(CommonFunctions.ToObject(dr["BANK_ACCOUNT"]));
			this.PayType = Convert.ToString(CommonFunctions.ToObject(dr["PAY_TYPE"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return FinReceivedDetailTable.Current;
            }
        }
		
		#region Perporty List
        public string ReceivedDetailId
        {
            get { return Convert.ToString(GetData(FinReceivedDetailTable.C_RECEIVED_DETAIL_ID)); }
            set { SetData(FinReceivedDetailTable.C_RECEIVED_DETAIL_ID, value); }
        }
		
        public string AccountsCode
        {
            get { return Convert.ToString(GetData(FinReceivedDetailTable.C_ACCOUNTS_CODE)); }
            set { SetData(FinReceivedDetailTable.C_ACCOUNTS_CODE, value); }
        }
		
        public string OrderType
        {
            get { return Convert.ToString(GetData(FinReceivedDetailTable.C_ORDER_TYPE)); }
            set { SetData(FinReceivedDetailTable.C_ORDER_TYPE, value); }
        }
		
        public string RelatedOrderId
        {
            get { return Convert.ToString(GetData(FinReceivedDetailTable.C_RELATED_ORDER_ID)); }
            set { SetData(FinReceivedDetailTable.C_RELATED_ORDER_ID, value); }
        }
		
        public string CustomerId
        {
            get { return Convert.ToString(GetData(FinReceivedDetailTable.C_CUSTOMER_ID)); }
            set { SetData(FinReceivedDetailTable.C_CUSTOMER_ID, value); }
        }
		
        public string ReceivedPerson
        {
            get { return Convert.ToString(GetData(FinReceivedDetailTable.C_RECEIVED_PERSON)); }
            set { SetData(FinReceivedDetailTable.C_RECEIVED_PERSON, value); }
        }
		
        public DateTime ReceivedDate
        {
            get { return Convert.ToDateTime(GetData(FinReceivedDetailTable.C_RECEIVED_DATE)); }
            set { SetData(FinReceivedDetailTable.C_RECEIVED_DATE, value); }
        }
		
        public decimal ReceivedAmount
        {
            get { return Convert.ToDecimal(GetData(FinReceivedDetailTable.C_RECEIVED_AMOUNT)); }
            set { SetData(FinReceivedDetailTable.C_RECEIVED_AMOUNT, value); }
        }
		
        public string Currency
        {
            get { return Convert.ToString(GetData(FinReceivedDetailTable.C_CURRENCY)); }
            set { SetData(FinReceivedDetailTable.C_CURRENCY, value); }
        }
		
        public string ReceivedType
        {
            get { return Convert.ToString(GetData(FinReceivedDetailTable.C_RECEIVED_TYPE)); }
            set { SetData(FinReceivedDetailTable.C_RECEIVED_TYPE, value); }
        }
		
        public string InvoiceNo
        {
            get { return Convert.ToString(GetData(FinReceivedDetailTable.C_INVOICE_NO)); }
            set { SetData(FinReceivedDetailTable.C_INVOICE_NO, value); }
        }
		
        public string Status
        {
            get { return Convert.ToString(GetData(FinReceivedDetailTable.C_STATUS)); }
            set { SetData(FinReceivedDetailTable.C_STATUS, value); }
        }
		
        public DateTime CreatedDate
        {
            get { return Convert.ToDateTime(GetData(FinReceivedDetailTable.C_CREATED_DATE)); }
            set { SetData(FinReceivedDetailTable.C_CREATED_DATE, value); }
        }
		
        public string CreatedBy
        {
            get { return Convert.ToString(GetData(FinReceivedDetailTable.C_CREATED_BY)); }
            set { SetData(FinReceivedDetailTable.C_CREATED_BY, value); }
        }
		
        public DateTime LastModifiedDate
        {
            get { return Convert.ToDateTime(GetData(FinReceivedDetailTable.C_LAST_MODIFIED_DATE)); }
            set { SetData(FinReceivedDetailTable.C_LAST_MODIFIED_DATE, value); }
        }
		
        public string LastModifiedBy
        {
            get { return Convert.ToString(GetData(FinReceivedDetailTable.C_LAST_MODIFIED_BY)); }
            set { SetData(FinReceivedDetailTable.C_LAST_MODIFIED_BY, value); }
        }
		
        public DateTime ApprovedDate
        {
            get { return Convert.ToDateTime(GetData(FinReceivedDetailTable.C_APPROVED_DATE)); }
            set { SetData(FinReceivedDetailTable.C_APPROVED_DATE, value); }
        }
		
        public string ApprovedBy
        {
            get { return Convert.ToString(GetData(FinReceivedDetailTable.C_APPROVED_BY)); }
            set { SetData(FinReceivedDetailTable.C_APPROVED_BY, value); }
        }
		
        public string Remark
        {
            get { return Convert.ToString(GetData(FinReceivedDetailTable.C_REMARK)); }
            set { SetData(FinReceivedDetailTable.C_REMARK, value); }
        }
		
        public string BankAccount
        {
            get { return Convert.ToString(GetData(FinReceivedDetailTable.C_BANK_ACCOUNT)); }
            set { SetData(FinReceivedDetailTable.C_BANK_ACCOUNT, value); }
        }
		
        public string PayType
        {
            get { return Convert.ToString(GetData(FinReceivedDetailTable.C_PAY_TYPE)); }
            set { SetData(FinReceivedDetailTable.C_PAY_TYPE, value); }
        }
		
		#endregion
	}
	
	
}	

